package com.ylc.test;

import com.ylc.proxy3.Agent;
import com.ylc.proxy3.ProductServiceImpl;
import com.ylc.proxy3.Service;
import org.junit.Test;

/**
 * @Author: ylc
 * @Description: 使用静态代理分离业务。
 * @Date Created in 2022-07-18 15:20
 */
public class MyTest03 {
    @Test
    public void test03(){
        Service service = new Agent(new ProductServiceImpl());
        service.buy();
    }
}
